// Copyright (C) 2010 David Sugar, Tycho Softworks.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.


#include <apennine-config.h>
#include <ucommon/ucommon.h>
#include <ucommon/secure.h>
#include <ucommon/export.h>
#include <apennine/namespace.h>
#include <apennine/xmlrpc.h>
#include <apennine/service.h>

namespace apennine {

keyfile Service::config;
LinkedObject *Service::runlist[3] = {NULL, NULL, NULL};

Service::Service(level_t runlevel) :
LinkedObject()
{
    enlist(&runlist[runlevel]);
}

void Service::Start(void)
{
}

void Service::Reload(void)
{
}

void Service::Stop(void)
{
}

unsigned Service::Reply(sstream *client)
{
    return 200;
}

unsigned Service::Prep(sstream *client)
{
    return 0;
}

} // end namespace
